package com.andnux.android.data;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * @author W1130
 * @TableName chat_session
 */
//@TableName(value = "chat_session")
@Data
public class ChatSession implements Serializable {
//    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     *归属者
     */
    private String userId;
    /**
     * 会话ID
     */
    private String sessionId;
    /** 发送者 */
    private String fromId;
    /** 接收者 */
    private String toId;
    /** 作品ID */
    private String worksId;
    /** 创建者 */
    private String creator;
    /** 创建时间 */
//    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
//    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN, timezone = "GMT+8")
    private Date createTime;
    /** 更新者 */
    private String updater;
    /** 更新时间 */
//    @DateTimeFormat(pattern = DateUtils.DATE_TIME_PATTERN)
//    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN, timezone = "GMT+8")
    private Date updateTime;

    /**
     * 是否删除 0未删除 1已删除
     */
//    @TableLogic
    private String deleted;

    private static final long serialVersionUID = 1L;

//    @TableField(exist = false)
    private String message;

//    @TableField(exist = false)
    private SystemUsers fromUser;

//    @TableField(exist = false)
    private SystemUsers toUser;

//    @TableField(exist = false)
    private Works works;
    /**
     * 未读消息
     */
//    @TableField(exist = false)
    private long toBeReadMessCount;

}